﻿using System;
using NopSolutions.NopCommerce.Common.Utils;

namespace NopSolutions.NopCommerce.Web.Administration.Modules
{
    public partial class CustomerAddressesControl : BaseNopAdministrationUserControl
    {
        protected void Page_Load(object sender, EventArgs e) {
            lnkAddBillingAddress.NavigateUrl = string.Format("~/Administration/AddressAdd.aspx?CustomerID={0}&IsBillingAddress={1}", CustomerId, true);
            lnkAddShippingAddress.NavigateUrl = string.Format("~/Administration/AddressAdd.aspx?CustomerID={0}", CustomerId);
        }

        public int CustomerId {
            get {
                return CommonHelper.QueryStringInt("CustomerId");
            }
        }
    }
}